package ExerciseOne;

class Person {

	protected String name = "Person";
	protected int age = 50;
	public String getInfo()
	{
		return "Name："+name+"\nAge："+age;
	}
}

class Student extends Person
{
	protected String school = "曲靖师范学院";
	public String getInfo()
	{
		return "Name："+name+"\nAge："+age+"\nschool："+school;
	}
}

class Graduate extends Student
{
	public String major = "IT";
	public String getInfo()
	{
		return "Name："+name+"\nAge："+age+"\nschool："+school+"\nmajor："+major;
	}
}
